import request from '@/utils/request'

// 查询接口管理厂家信息列表
export function listManufacturer(query) {
  return request({
    url: '/ruoyi-managerapi/manufacturer/list',
    method: 'get',
    params: query
  })
}

// 查询接口管理厂家信息详细
export function getManufacturer(id) {
  return request({
    url: '/ruoyi-managerapi/manufacturer/' + id,
    method: 'get'
  })
}

// 新增接口管理厂家信息
export function addManufacturer(data) {
  return request({
    url: '/ruoyi-managerapi/manufacturer',
    method: 'post',
    data: data
  })
}

// 修改接口管理厂家信息
export function updateManufacturer(data) {
  return request({
    url: '/ruoyi-managerapi/manufacturer',
    method: 'put',
    data: data
  })
}

// 删除接口管理厂家信息
export function delManufacturer(id) {
  return request({
    url: '/ruoyi-managerapi/manufacturer/' + id,
    method: 'delete'
  })
}


// 测试接口管理厂家信息
export function testConnection(id) {
  return request({
    url: '/ruoyi-managerapi/manufacturer/connection/' + id,
    method: 'get'
  })
}
